<template>
	<view>
		<view v-if="islog" class="flex j-c a-c" style="height: 180rpx;background-color: #fff;">
			<image style="width: 50rpx;height: 50rpx;" src="@/static/lo.gif"></image>
		</view>
		<view v-if="!islog" class="pr2 pl2 pb2" v-for="(item,index) in list" :key="index">
			<view class="p20 b_y flex" style="background-color: #fff;display: flex;justify-content: space-around;">
				<view class="" @click="item.residue<=0||times(item,1)||times(item,2)?'':on_view(item)"
					style="position: relative;width: 160rpx;height: 160rpx;">
					<image class="b_y" style="width: 160rpx;height: 160rpx;position: absolute;z-index: 9;"
						:src="item.pic||''">
					</image>
				</view>
				<view @click="on_view(item)" style="margin-left: 10rpx;width:450rpx ;">
					<text class="f30 w800 ml1 yihang" style="width: 350rpx;">{{item.name}}</text>
					<view class="pt1 yihang" style="margin-left: 15rpx;">
						<text class="f26" style="color: #999999;">创建日期:{{item.createDate}}</text>
					</view>
					<view class="pt1 yihang" style="margin-left: 15rpx;overflow: hidden;">
						<text class="f26" style="color: #999999;">商户地址:{{item.address}}</text>
					</view>
				</view>
			</view>
		</view>
		<view v-if="!islog&&list.length==0" class="flex j-c a-c" style="background-color: #f5f5f5;">
			<image src="../../static/tab/null.png" style="width:400rpx;height:400rpx;margin-top: 40rpx;" mode="aspectFill"></image>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			options: {
				type: Object,
				default: function(e) {
					return {}
				}
			},
			list: {
				type: Array,
				default: function() {
					return [] //数据
				},
			},
			islog: {
				type: Boolean, //是否显示边框
				default: true
			},
			log: {
				type: String,
				default: ''
			},
			qiniu: {
				type: String,
				default: ''
			},
			tabindex: {
				type: Number,
				default: 0
			},
			index: {
				type: Number,
				default: 0
			},
			time: {
				type: Number,
				default: 0
			},
			type: {
				type: Number,
				default: 0
			},
		},
		data() {
			return {
			}
		},
		mounted() {
		},
		methods: {
			on_view(item) {
				this.$module.navigateTo('/pages/views/auditShop?item=' + JSON.stringify(item))
			},
		}
	}
</script>

<style>
	.ff {
		padding: 8rpx 14rpx;
		color: #fff;
		border-radius: 20rpx;
		font-size: 25rpx;
	}

	.mc {
		position: absolute;
		background-color: #4e4e4ec7;
		color: #fff;
		text-align: center;
		z-index: 999;
		line-height: 160rpx;
		width: 160rpx;
		height: 160rpx;
	}
</style>